<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<link rel="stylesheet" type="text/css" href="/bootstrap/css/bootstrap.min.css">  
<script src="/bootstrap/js/jquery-2.2.2.js"></script>  
<script src="/bootstrap/js/bootstrap.min.js"></script>  
 <div id="main" class="container">
  <div class="row">
  <div class="col-lg-12 col-sm-12 col-md-12">
  <div class="pull-right"><a href="form" class="btn btn-primary" >新增用户</a></div>
  <table class="table table-hover table-bordered">
  <thead><th>ID</th><th>姓名</th><th>年龄</th><th>性别</th><th>备注</th><th>操作</th></thead>
  <tbody>
  <c:forEach items="${users}" var="user">
  <tr><td>${user.id}</td><td>${user.name}</td><td>${user.age}</td><td>男</td><td>${user.remark}</td><td><a href="edit/${user.id }" class="btn btn-primary btn-sm">修改</a><a href="del/${user.id }" class="btn btn-danger btn-sm">删除</a></td></tr>
 </c:forEach>
  </tbody>
  </table>
  </div>
  </div>
</div>
</html>